import { _decorator, BoxCollider, Component, instantiate, Node, Prefab, Vec2 } from 'cc';
import { GameLevelBase } from './LevelBase';
import { EdibleLayer } from './EdibleLayer';
const { ccclass, property } = _decorator;

@ccclass('CommonLevel')
export class CommonLevel extends GameLevelBase {

    @property({ type: BoxCollider })
    public Floor: BoxCollider = null;

    start() {

    }

    update(deltaTime: number) {

    }

    public OnGameStart(): void {
        super.OnGameStart();
        let coms = this.node.getComponents(EdibleLayer);
        for (let i = 0; i < coms.length; ++i) {
            let com = coms[i];
            com.Refresh();
        }
    }
}


